package com.chen.TestDealNullSiwftCode;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *@author：email: <a href="cyb@ewppay.com"> Administrator </a> 
 *@Date 2017-2-10 下午3:11:17 
 */

public class ConnectionUtil {
	public static Connection getConnection(String url,String username,String password){
		Connection conn = null;
		try {
			Class.forName("com.mysql.jdbc.Driver");
			conn = DriverManager.getConnection(url, username, password);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return conn;
	}
}
